package cc.wsyw126.java.mongoDB.Utils;

import java.util.Collection;
import java.util.Map;

/**
 * Created by junpeng.yang on 17/1/9.
 */
public class CommonUtils {

    public static boolean isEmpty(Collection<?> collection) {
        return (collection == null || collection.isEmpty());
    }

    public static Boolean isEmpty(Map<?, ?> map) {
        return (map == null || map.isEmpty());
    }
}
